using PicStore.Common.Ioc;
using Microsoft.Practices.Unity;
using PicStore.BLL.Register;
using PicStore.BLL.Interface;
using PicStore.BLL.Impl;
using PicStore.Common.Log;

namespace PicStore.Client
{
    public class UnityContainerConfigBuilder : IUnityContainerBuilder
    {
        private IUnityContainer container = null;
        public UnityContainerConfigBuilder(IUnityContainer _container)
        {
            container = _container;
        }

        public IUnityContainer BuildUnityContainer()
        {
            //// only register for framework.
            //container.RegisterType<IUserService, UserService>();
            container.RegisterType<ILog, Log4Net>();

            return container;
        }

    }
}